package com.kch.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kch.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author 
 * banner表
 */
public class SysBanner extends BaseEntity {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 图片链接
     */
    @NotBlank(message = "封面图不能为空")
    private String imageurl;

    /**
     * 连接
     */
    private String link;

    /**
     * 权重
     */
    @NotNull(message = "权重不能为空")
    private Integer weight;

    /**
     * 有效期开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "有效期开始时间不能为空")
    private Date expStart;

    /**
     * 有效期结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "有效期结束时间不能为空")
    private Date expEnd;

    /**
     * 栏目编码
     */
    @NotBlank(message = "栏目编码不能为空")
    private String cloumnCode;


    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getImageurl() {
        return imageurl;
    }

    public void setImageurl(String imageurl) {
        this.imageurl = imageurl;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Date getExpStart() {
        return expStart;
    }

    public void setExpStart(Date expStart) {
        this.expStart = expStart;
    }

    public Date getExpEnd() {
        return expEnd;
    }

    public void setExpEnd(Date expEnd) {
        this.expEnd = expEnd;
    }

    public String getCloumnCode() {
        return cloumnCode;
    }

    public void setCloumnCode(String cloumnCode) {
        this.cloumnCode = cloumnCode;
    }
}